﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace EarthImitate
{
    public class Sun : Planet
    {


        public Sun(Point2D p0)
            : base()
        {
            base.gocToaDo = p0;
            base.gocQuay = (float)(5 * Math.PI / 180);
            base.phanHoach = 25;
            base.gocPhi = -0.7;
            base.gocTeta = -1.5555;
            base.banKinh = 90;
            base.colorLine = Color.OrangeRed;
            InitWireframe();
        }


        public override void Draw(Graphics graphics)
        {
            Drawing.tinhPhapVector(ref this.wireFrame, gocPhi, gocTeta);
            Vector vTraiDat; vTraiDat.x = 0; vTraiDat.y = 0; vTraiDat.z = 1; //{ 0, 0, 1 };// -vector tia nhin
            Drawing.khuMatKhuat(ref this.wireFrame, vTraiDat);
            Drawing.veSS_viewxyMT(graphics, this.wireFrame, this.gocPhi, this.gocTeta, this.gocToaDo, this.ColorLine);
        }
    }
}
